<?php

class IndexController extends AppController {
    var $uses = array();
    var $components = array('Auth');
    
    function homepage() {
        $this->layout = 'default';
    }

    function head() {
        $this->redirect(array('controller' => 'accounts', 'action' => 'login'));
    }
    
    function foot() {
    }

    function content() {
        if($this->Auth->user() != null) {
            $this->redirect(array('controller' => 'memos', 'action' => 'index'));
        } else {
            $this->redirect(array('controller' => 'index', 'action' => 'information'));
        }
    }

    function information() {

    }

}